﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ServiceList.ascx.cs" Inherits="Controls_AdminControls_ServiceList" %>
<div class="list_button">
    <dx:ASPxButton runat="server" ID="btnAddServiceGroup" AutoPostBack="False" Text="Додати групу" SkinID="Add" />
</div>
<div class="list_button">
    <dx:ASPxButton runat="server" ID="btnAddService" Text="Додати послугу" SkinID="Add" OnClick="btnAddService_Click" />
</div>
<dx:ASPxGridView ID="gridList" runat="server" Width="100%" ClientInstanceName="gridList"
    AutoGenerateColumns="False" KeyFieldName="ID">
    <Columns>
        <dx:GridViewDataTextColumn FieldName="Name" Caption="Група" VisibleIndex="0">
        </dx:GridViewDataTextColumn>
        <dx:GridViewDataColumn Width="30px">
            <DataItemTemplate>
                <table>
                    <tr>
                        <td>
                            <dx:ASPxButton ID="btnEdit" runat="server" SkinID="Edit" />
                        </td>
                        <td>
                            <dx:ASPxButton ID="btnDelete" runat="server" SkinID="Delete" />
                        </td>
                    </tr>
                </table>
            </DataItemTemplate>
        </dx:GridViewDataColumn>
    </Columns>
    <Templates>
        <DetailRow>
            <dx:ASPxGridView ID="gridServices" runat="server" Width="100%"
                AutoGenerateColumns="False" KeyFieldName="ID"
                OnBeforePerformDataSelect="gridServices_BeforePerformDataSelect"
                OnHtmlRowCreated="gridServices_HtmlRowCreated"
                OnRowDeleting="gridServices_RowDeleting">
                <Columns>
                    <dx:GridViewDataTextColumn FieldName="Name" Caption="Послуга" VisibleIndex="0">
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataColumn Width="30px">
                        <DataItemTemplate>
                            <table>
                                <tr>
                                    <td>
                                        <dx:ASPxButton ID="btnEditService" runat="server" SkinID="Edit" />
                                    </td>
                                    <td>
                                        <dx:ASPxButton ID="btnDelete" runat="server" SkinID="Delete" />
                                    </td>
                                </tr>
                            </table>
                        </DataItemTemplate>
                    </dx:GridViewDataColumn>
                </Columns>
            </dx:ASPxGridView>
        </DetailRow>
    </Templates>
    <SettingsDetail ShowDetailRow="true" />
</dx:ASPxGridView>
<script type="text/javascript">
    
</script>
